'''
用户注册相关功能：短信、注册、登录、注销。
'''
from django.shortcuts import render,HttpResponse
from utils.tencent.sms import send_sms_single
import random
from django.conf import settings
from web.forms.account import *

def register(request):

    form = RegisterModelForm()
    return render(request,'register.html',locals())

def send_sms(request):
    print(request.GET)

    form = SendSmsForm(request,data=request.GET)
    if form.is_valid():
        pass
    return HttpResponse('成功')